<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 利用new Object() 来创建对象
        const obj = new Object()
        console.log(obj)

        obj.name = '小王'
        obj.age = 8
        obj.sayHi = function(){
            console.log('Hi~~~~')
        }

        const p = new Object({name:'小正', age:2})
        console.log(p)

        // 语法糖 甜甜的
        const obj = {}    // ==> new Object()
        const arr = []   //  ==> new Array()

        // ==> 还有一个 ==> Object.create()
    </script>
</body>
</html>